NetBSD hotplug: Introduce locking functions
authorManuel Bouyer <bouyer@netbsd.org>
Tue, 26 Jan 2021 22:47:48 +0000 (23:47 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Jan 2021 22:50:08 +0000 (22:50 +0000)
commit6e2d9b317d18081eabdc2818c8f80d474a58d499
tree41fc40deee9270599c3f9788bf1ea006889c8616
parentb9a76fc4f0825e9161cf579f2f584226ea08afe9
NetBSD hotplug: Introduce locking functions

On NetBSD, some block device configuration requires serialisation.
Introcuce locking functions (derived from the Linux version), and use them
in the block script where appropriate.

Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/NetBSD/Makefile
tools/hotplug/NetBSD/block
tools/hotplug/NetBSD/locking.sh [new file with mode: 0644]